<meta charset="utf-8">

<?php

include_once($_SERVER['DOCUMENT_ROOT'].'Exiastore/Model/Users/membre.php');
include_once($_SERVER['DOCUMENT_ROOT'].'Exiastore/Model/BDD.php');

session_start();

$membre = new Membre();
$bdd = new BDD();
$membre->getMembreInfo();


    
$req = $bdd->getBDD()->prepare('UPDATE membre SET nom = :nom, prenom = :prenom, email = :email WHERE login=:login');
$req->execute(array(
'nom' => $nom= $_POST['nom'],
'prenom' => $prenom= $_POST['prenom'],
'email' => $email=$_POST['email'],
//'pays' => $pays=$_POST['pays'],
//'adresse' => $pays=$_POST['adresse'],
'login' => $login=$_SESSION['login'],
));   
        
echo "<script> alert('Modifications enregistrées')</script>";
header("Refresh: 0; URL=index.php");

?>

